def desc(func):
    def auth():
        print("用户名密码认证")
    def log():
        print("日志添加")

    def inner():
        auth()
        func()
        log()
    return inner

@desc
def func1():
    print('计算')





func1()
